package com.chao.java.ai.langchain4j.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author eclipse
 * @version 2025/6/28 21:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("chat_messages")
public class ChatMessages {

    /**
     * 唯一标识，映射到MongoDB文档的 _id
     */
    @Id
    private ObjectId messageId;

    private String memoryId;

    /**
     * 存储当前聊天记录列表的json字符串
     */
    private String content;

}
